window.onload=function(){
	//工单管理和投诉管理的已完成和未完成切换
	
	qiehuan("all");
	qiehuan("all2");
	
	
}

function qiehuan(id){
	var nowUl = document.getElementById(id);
	var nowLi = nowUl.getElementsByTagName("li");
	for(var i = 0; i < nowLi.length; i++) {
		nowLi[i].onclick = function() {
			for(var j = 0; j < nowLi.length; j++) {
				nowLi[j].className = "";
			}
			this.className = "now";

		}

	}
}
